//在api文件夹里引入刚才创建好的request文件
import request from '../utils/request'

// 气体探测器历年趋势
export function getDeviceCountTrend(query) {
  return request({
    url: '/gas/screen/getDeviceCountTrend',
    method: 'get',
    params: query
  })
}

// 气体预警趋势
export function getWarnCountTrend(query) {
  return request({
    url: '/gas/screen/getWarnCountTrend',
    method: 'get',
    params: query
  })
}

// 获取大屏顶部汇总数量信息
export function getTopCount(query) {
  return request({
    url: '/gas/screen/getTopCount',
    method: 'get',
    params: query
  })
}

// 获取大屏底部柱状图
export function getBottomCount(query) {
  return request({
    url: '/gas/screen/getBottomCount',
    method: 'get',
    params: query
  })
}

// 报警治理情况
export function getGovern(query) {
  return request({
    url: '/gas/screen/getGovern',
    method: 'get',
    params: query
  })
}

// 报警治理详情
export function getGovernDetail(query) {
  return request({
    url: '/gas/screen/getGovernDetail',
    method: 'get',
    params: query
  })
}

// 获取预警情况列表
export function getEventList(query) {
  return request({
    url: '/gas/screen/getEventList',
    method: 'get',
    params: query
  })
}

//企业大屏接口


// 获取预警情况列表
export function getCompanyTop(query) {
  return request({
    url: '/gas/screen/getCompanyTop',
    method: 'get',
    params: query
  })
}

// 获取预警情况列表
export function getCompanyBottom(query) {
  return request({
    url: '/gas/screen/getCompanyBottom',
    method: 'get',
    params: query
  })
}

// 获取预警情况列表
export function getCompanyGovern(query) {
  return request({
    url: '/gas/screen/getCompanyGovern',
    method: 'get',
    params: query
  })
}

// 获取预警情况列表
export function getCompanyGovernDetail(query) {
  return request({
    url: '/gas/screen/getCompanyGovernDetail',
    method: 'get',
    params: query
  })
}

// 获取预警情况列表
export function getDailyEventCount(query) {
  return request({
    url: '/gas/screen/getDailyEventCount',
    method: 'get',
    params: query
  })
}

// 获取预警情况列表
export function getCompanyEventList(query) {
  return request({
    url: '/gas/screen/getCompanyEventList',
    method: 'get',
    params: query
  })
}
